﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BlogEngine.Core
{
    /// <summary>
    /// Class consists of specific culture information used by BlogEngine.
    /// </summary>
    public class CultureCollectionItem
    {
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="cultureName">Name of the culture (en, fr, cs, etc.)</param>
        /// <param name="cultureId">ID of the culture used in data storage (XML, SQL)</param>
        /// <param name="active">True if the culture is active in BlogEngine, otherwise false.</param>
        public CultureCollectionItem(string cultureName, byte cultureId, bool active)
        {
            _cultureName = cultureName;
            _cultureId = cultureId;
            _active = active;
        }

        private string _cultureName;
        /// <summary>
        /// Gets the culture name (en, fr, cs, etc.)
        /// </summary>
        public string CultureName
        {
            get { return _cultureName; }
        }

        private byte _cultureId;
        /// <summary>
        /// Gets the culture ID used in data storage (XML, SQL)
        /// </summary>
        public byte CultureID
        {
            get { return _cultureId; }
        }

        private bool _active;
        /// <summary>
        /// Gets or sets the active state of the culture.
        /// </summary>
        public bool Active
        {
            get { return _active; }
            set { _active = value; }
        }
    }
}
